package com.loveprogrammer.model.game;

import com.loveprogrammer.domain.User;
import lombok.Data;

import java.util.HashMap;
import java.util.Map;

/**
 * @ClassName UserGameWrapper
 * @Description 用户游戏封装类
 * @Author admin
 * @Date 2024/2/20 11:35
 * @Version 1.0
 */
@Data
public class UserGameWrapper {

    private User user;

    private HeroWrapper currentHero;

    private Map<String,HeroWrapper> heroWrapperMap;

    private UserGameWrapper(){
    }

    public static UserGameWrapper create(User user) {
        UserGameWrapper wrapper = new UserGameWrapper();
        wrapper.setUser(user);
        wrapper.setHeroWrapperMap(new HashMap<>());
        return wrapper;
    }

}
